<?php TPL::output('global/header.tpl.htm'); ?>

<div class="bd"> 
  <!--right_nav_s--> 
  <!--问题注释_s-->
  <div class="tommy_rightDiv" id="con_0">
    <ul class="yquestionTag" style="border-top:none;">
      <li><strong>问题发布指南</strong></li>
    </ul>
    <div class="company_pro txt" id="con_0">
      <p><b><em>●</em>问题标题：</b> 请用准确的语言描述您发布的问题思想
        <?php if (get_setting('question_title_limit') > 0 ) { ?>
        ，并控制在 <?php echo get_setting('question_title_limit'); ?> 个字数以内
        <?php } ?>
        。</p>
      <p><b><em>●</em>问题补充：</b> 详细补充您的问题内容，并提供一些相关的素材以供参与者更多的了解您所要问题的主题思想</p>
      <p><b><em>●</em>选择话题：</b> 选择一个或者多个合适的话题，让您发布的问题得到更多有相同兴趣的人参与。如果系统没有相关话题，您可以选择创建新的话题。所有人可以在您发布问题之后添加和编辑该问题所属的话题。</p>
    </div>
  </div>
  <!--问题注释_e--> 
  <!--right_nav_e--> 
  <!--left_nav_s-->
  <div class="contant_left">
    <h2 class="c_title s_qus"><img class="img" src="<?php echo G_STATIC_URL; ?>/common/a_l_04.png"/>发起问题</span></h2>
    <form action="publish/ajax/<?php if ($this->question_info['question_id']) { ?>modify<?php } else { ?>publish<?php } ?>_question/" method="post" id="question_form" onsubmit="return false;">
      <input type="hidden" name="post_hash" value="<?php echo new_post_hash(); ?>" />
      <input type="hidden" name="attach_access_key" value="<?php echo $this->attach_access_key; ?>" />
      <input type="hidden" name="question_id" id="question_id" value="<?php echo $this->question_info['question_id']; ?>" />
      <input type="hidden" name="ask_user_id" value="<?php echo $_POST['ask_user_id']; ?>" />
      <ul class="discussion_element default_addQuestion" id="layer0" style="width:auto; margin:0 26px;">
        <li>
         <select name="category_id" class="select fr hide" id="category_id">
            <option value="0">- 请选择分类 -</option>
            <?php echo $this->question_category_list; ?>
          </select>
          <label>问题标题：</label>
          <div class="default_replenish default_quesions selector_class">
            <input name="question_content" id="question_contents" value="<?php echo $this->question_info['question_content']; ?>" onfocus="if(this.value=='请输入您要发起的问题...'){this.value='';};this.style.color='#333';" onblur="if(this.value==''){this.value='请输入您要发起的问题...';};this.style.color='#999';" class="selector_txt" type="text" value="<?php echo $this->question_info['question_content']; ?>"<?php if(get_setting('question_title_limit') > 0 ){ ?> maxlength="<?php echo get_setting('question_title_limit'); ?>"<?php } ?> />
            <div id="question_ajax_expert" class="question_ajax hide" style="top:34px;width:458px;">
              <p class="question_ask"><a title="点击关闭" class="qes_x" href="javascript:;">不是<em>close</em></a>你想问的是不是下面这些问题？</p>
              <div class="maxAtuo"></div>
            </div>
          </div>
        </li>
        <li>
          <label>问题补充：</label>
          <textarea class="lx" name="question_detail" id="question_detail" style="height: 320px;"><?php echo $this->question_info['question_detail']; ?></textarea>
        </li>
        <?php if (get_setting('upload_enable') == 'Y') { ?>
        <li>
          <label>上传附件：</label>
          <div id="file_uploader_question" class="_ajax_uploader userUploadDate"></div>
          <div style="clear:left"></div>
        </li>
        <?php } ?>
        <li <?php if ($this->question_info['question_id']) { ?> style="display:none"<?php } ?>>
          <label>添加话题：</label>
          <div class="shd" id="Manytopics">
            <div id="addtxt" class="add_C hide"> </div>
            <a title="话题编辑" onclick="hide('editorInput','editor','editorInput','editor hide',this)" id="editor" class="editor" href="javascript:void(0);" title="点击为该问题添加话题">添加话题</a>
            <div id="editorInput" class="editorInput hide" style="padding-top:0;">
              <div class="hide" id="ajaxDate" style="top:29px;">
                <div onclick="add('take');" class="add">添加 <span id="take"></span>话题</div>
                <div id="txt"></div>
              </div>
              <input type="text" name="addName" class="i_add" id="ajaxValue_txt">
              <a onclick="hide('editor','editorInput','editor ','editorInput hide',this);addElementVALUE();" class="default_blue_but" href="javascript:void(0);">完成</a>
              <p class="cr hide" id="err">请勿重复添加话题！</p>
            </div>
          </div>
        </li>
        <?php if ($this->human_valid) { ?>
        <li>
          <label>验证码：</label>
          <input type="text" name="seccode_verify" class="default_autoCode">
          &nbsp;&nbsp;<span class="default_aotoNum"><img id="captcha" onclick="this.src = G_BASE_URL + '/account/captcha/rnd-' + Math.random();" title="点击换一张" src=""></span><a  href="javascript:;" title="点击换一张" onclick="$('#captcha').click();">换一张</a> </li>
        <?php } ?>
        <li style="padding-left:0;position:static; width:100%;"><a href="#" onclick="form_submit('question_contents');return false;" class="sureSubMit">确定发布</a></li>
      </ul>
    </form>
  </div>
  <!--left_nav_e--> 
</div>
<script type="text/javascript">
	var ATTACH_ACCESS_KEY = '<?php echo $this->attach_access_key; ?>';
	elementClickEvent.letter.question_start('question_contents','question_ajax_expert');
</script>

<?php TPL::output('global/footer.tpl.htm'); ?>